<template>
  <div class="hos-nav">
    <div class="panel">
      <div style="padding:10px;">
        <div class="daka_staff">
          <div class="daka_staffinfo" style="color:#6A6A6A">{{staffInfo.hospName}}</div>
          <div class="daka_staffinfo" style="color:#333;font-weight:bold;">{{staffInfo.staffName}}({{staffInfo.id}})</div>
          <div class="daka_staffinfo" style="color:#6A6A6A">{{staffInfo.deptName}}-{{staffInfo.postName}}</div>
        </div>
      </div>
      <div class="questionList">
        <div v-for="(item, index) in triggerTime" :value="index" :key="index"></div>
      </div>
    </div>
  </div>
</template>

<script>
import api from "@/common/api.service";
export default {
  name: "healthForm",
  data() {
    return {
      organInfo: {},
      staffInfo:{},
      questionInfo:{}  
    };
  },
   mounted () {
     
    },
  created() {
    this.organInfo = JSON.parse(localStorage.getItem('organInfo'))
     this.staffInfo = JSON.parse(localStorage.getItem('staffInfo'))
    this.getQuestion();
  },
  computed: {},
  methods: {
    getQuestion () {
       var _that = this;
      api.post("questionnaireService/getQuestionaireInfoByHospId?id=1&hospId="+this.organInfo.id).then(function(json){
        if(json.data.success) {
          _that.questionInfo = json.data.data;
        } else {
        //   _that.$message({
        //   // message: '获取机构信息失败'
        // });
        }
      })  
    }  
  }
};
</script>
<style>
.healthyCheck{
  width:80px;
  height:80px;
  background-color:#4D4DFD;
  color:#fff;
  font-size:18px;
  font-weight:bold;
  position:absolute;
  line-height:80px;
  border-radius:40px;
  text-align:center;
      z-index: 99;
    top: 30%;
    left: 50%;
    margin-left: -40px;
}
.daka_staffinfo{
  font-size:14px;
  padding:5px 0px;
}
.panel{
  width: 95%;
    border-radius: 20px;
    z-index: 999;
    background-color: #fff;
    position: absolute;
}
.daka_staff{
  border-bottom:1px dashed #EAEBEE;
}
</style>
